const path = require('path')
const fs = require('fs')

// '../' 会抵消前面的路径

const pathStr = path.join('/a','/b/c','../','/d','e')

console.log(pathStr);

fs.readFile(path.join(__dirname,'./成绩.txt'),'utf8',function(err,result){
    if(err){
        console.log('读取文件失败！'+err.message);
    }
    console.log(result);
})